#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "🔍 运行代码检查..."
npm run lint

echo "💅 运行代码格式化..."
npm run format

npm run test

echo "✅ 代码检查、格式化和测试通过，准备提交代码."
git add .